﻿<cfsilent>
	<cfscript>

		event.setArg("pageTitle", "学习进程规划 - 考试安排");

		sessionAdvice = getProperty("serviceFactory").getBean("sessionAdvice");
		dictAdvice = getProperty("serviceFactory").getBean("senateDictionaryAdvice");

		termId = event.getArg("TermID");

		academicYear = event.getArg("AcademicYear");
		academicTerm = event.getArg("AcademicTerm");

		academicYearRST = event.getArg("AcademicYearRST");
		academicTermRST = event.getArg("AcademicTermRST");

		/* 学籍相关信息 */
		//studentId = sessionAdvice.getAutherUserID();
		//studentClassId = sessionAdvice.getUserProp("studentClass");
		//studentSubjectId = sessionAdvice.getUserProp("studentSubject");
		//studentDirId = sessionAdvice.getUserProp("studentSubDir");
		//studentGrade = sessionAdvice.getUserProp("studentGrade");
		//studentDepartment = sessionAdvice.getUserProp("studentDepartment");
		
		currentTab = event.getArg("TabID", "labFinalExam");

	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('DEFAULT_EVENT')#</cfoutput>"><i class="mrs img btnPublish"></i><span class="uiButtonText">学习进程规划</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 application"></i><cfoutput>#academicYear#</cfoutput>学年 <cfoutput>#dictAdvice.getTerm(academicTerm)#</cfoutput> - 考试安排
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="programCourse">
				<div class="UItab">
					<div class="tabLables">
						<span <cfif currentTab eq "labFinalExam">class="active"</cfif> id="labFinalExam" tabTarget="FinalExam">期末考试</span>
						<!---<span <cfif currentTab eq "labMidExam">class="active"</cfif> id="labMidExam" tabTarget="MidExam">期中考试</span>
						<span <cfif currentTab eq "labResitExam">class="active"</cfif> id="labResitExam" tabTarget="ResitExam">补考</span>--->
					</div>
					<script language="javascript" type="text/javascript">
						//<![CDATA[
						<!--
						$(document).ready(function() {
						
							/* init Tab */
							$("div.tabContent").hide();
							$("div#" + $("div.tabLables span.active").attr("tabTarget")).show();
						
							$("div.tabLables > span").click(function(){
								var $targetID = $(this).attr("tabTarget");
							
								$("div.tabLables span").removeClass("active");
								$(this).addClass("active");
							
								$("div.tabContent").not('[id="' + $targetID + '"]').hide();
								$("div.tabContent#" + $targetID).show();
							});
						
						});
					
						// -->
						//]]>
					</script>
					
					<div id="FinalExam" class="tabContent">
					
						<div class="noticeBlock">
							<h3><cfoutput>#academicYear#-#academicTerm#</cfoutput> 学期 期末考试安排</h3>
							<p>下列是当前学期, 您已选择修读的课程的考试安排.</p>
							<hr/>
						</div>

						<div id="finalExamTable">
							<!--- 显示期末考试安排 --->
							<!-- finalExam -->
							<cfoutput>#event.getArg("finalExam")#</cfoutput>
							<!-- /finalExam -->
						</div>
					
					</div>
					<!--- 描述：增加期中考试安排 修改时间：2013-09-24 修改人：wenhaibo  --->
					<div id="MidExam" class="tabContent">
					
						<div class="noticeBlock">
							<h3><cfoutput>#academicYear#-#academicTerm#</cfoutput> 学期 期中考试安排</h3>
							<p>下列是当前学期, 您已选择修读的课程的考试安排.</p>
							<hr/>
						</div>

						<div id="midExamTable">
							<!--- 显示期中考试安排 --->
							<!-- midExam -->
							<cfoutput>#event.getArg("midExam")#</cfoutput>
							<!-- /midExam -->
						</div>
					
					</div>
					<div id="ResitExam" class="tabContent">
					
						<div class="noticeBlock">
							<h3><cfoutput>#academicYearRST#-#academicTermRST#</cfoutput> 学期 补考安排</h3>
							<p>下列您已选择修读的课程的补考安排.</p>
							<hr/>
						</div>

						<div id="resitExamTable">
							<!--- 显示补考考试安排 --->
							<!-- resitExam -->
							<cfoutput>#event.getArg("resitExam")#</cfoutput>
							<!-- /resitExam -->
						</div>
					
					</div>
				
				</div>
			</div>
		</li>
	</ul>
</div>